<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>添加项目报备  <{$smarty.const.WEB_NAME}></title>
	<link rel="stylesheet" type="text/css" href="./skin/<{$smarty.const.TPL_NAME}>/style.css" />
	<script type="text/javascript" src="./skin/<{$smarty.const.TPL_NAME}>/comm.js"></script> 
</head>
 <body>
     
	<div class="mainBox"> 

<table width="100%" border="1" cellspacing="0" bordercolor="#cfcfcd" cellpadding="0" align="center" class="tableList tip_bug">
  <tr> 
    <th class="h2">添加项目报备</th>
	<th width="200"><a href="?q=reportedList">返回</a></th>
  </tr>
</table>

	 <form method="post" name="data1" id="data1" action="index.php?q=addreportedSava" onsubmit="return projectInfoVerlid()">
<input type="hidden" name="id" id="updateId"  value="<{$id}>" />
    <table width="100%" border="1" cellspacing="0" bordercolor="#cfcfcd" cellpadding="0" align="center" id="tableList">
         <tr class="tit">
           <th width="100" align="center">项目名称</th>
		   <th align="left"><input type="text" name="title" value="<{$title}>" class="input_1" size="32" onblur="selectRelatedTitle(this.value)" flag="1"/><span class="red">*</span></th>
		   <th width="100" align="center">项目类型</th>
		   <th align="left">&nbsp;
		     <select name="resourceId" id="selectData" onchange="newResource(this)">
			  <{section name=list loop=$resourceList}>			    
				<option value="<{$resourceList[list].id}>"<{if $resourceId == $resourceList[list].id}> selected="selected"<{/if}>
				><{$resourceList[list].name}></option>
			  <{/section}>
			 <{if $smarty.session.type == 2}> <option style="color:red" value="0">添加</option><{/if}>
		     </select>
		   </th>
         </tr>
		 <tr style="display:none">
		   <td>相关主题：</td>
		   <td colspan="3" id="titleList">
	           
		    </td>
		 </tr>
         <tr>
           <td width="100">最终用户</td>
		   <td><input type="text" name="unit" value="<{$unit}>" class="input_1" size="32" flag="1"/><span class="red">*</span>
		   </td>
		   <td width="100">报备公司名称</td>
		   <td><input type="text" name="anzeigeInc" value="<{$anzeigeInc}>" class="input_1" size="32"/></td>
         </tr>
		 <tr>
           <td width="100">联系人</td>
		   <td><input type="text" name="linkman" value="<{$linkman}>" class="input_1" size="32" flag="1"/><span class="red">*</span>
		   </td>
		   <td width="110">报备公司联系人</td>
		   <td><input type="text" name="anzeigeLinkman" value="<{$anzeigeLinkman}>" class="input_1" size="32"/></td>
		 </tr>
		 <tr>
		   <td width="100">联系电话</td>
		   <td><input type="text" name="phone" value="<{$phone}>" class="input_1" size="32" flag="1"/><span class="red">*</span></td>
		   <td width="100">报备公司电话</td>
		   <td><input type="text" name="anzeigePhone" value="<{$anzeigePhone}>" class="input_1" size="32"/></td>
		 </tr>
		 <tr>
		    <td width="100">邮箱</td>
			<td><input type="text" name="mail" value="<{$mail}>" class="input_1" size="32"/></td>
		    <td width="100">报备公司邮箱</td>
			<td><input type="text" name="anzeigeMail" value="<{$anzeigeMail}>" class="input_1" size="32"/></td>
		 </tr>
		 <tr>
		   <td width="100">网点规模</td>
		   <td colspan="3"><input type="text" name="scale" value="<{$scale}>" class="input_1" size="4" onkeyup="value=value.replace(/[^\d]/g,'')" />
		   </td>
		 </tr>

         <tr>
		    <td>客户反映情况</td>
		    <td colspan="3">
			<textarea name="reflect" class="replyText"><{$reflect}></textarea>
			</td>
		 </tr>
		 <tr>
			 <td align="center" colspan="4">
				<input type="submit" value="提交" class="submit" />
				<input type="reset" class="submit"/>
			 </td>
		 </tr>
  </table>
  </form>

</div>

<table border="1" cellspacing="0" bordercolor="#cfcfcd" cellpadding="0" id="newUSerBox" class="msg_box" style=" height: 34px; width:250px; display:none; left:320px;">
	
  <tr>
    <td>名称</td>
	<td><input type="text" name="name" id="labelName" class="inputText"/></td>
	<td><input type="button" value="确定" class="inputBtn" onclick="insertResource(1)"/></td>
  </tr>
</table>

<script type="text/javascript">
<!--
function projectInfoVerlid(){
  var i , list;
  list =  $('data1').elements;
  for (i = 0; i < list.length ; i++ )
  {
	if(list[i].type == "text" || list[i].type == "textarea"){
	 if(list[i].flag){
	  if(list[i].value.Trim() == ""){
		alert("必填输入框不能为空");
		return false;
	  }
	 }
	}
  }
}
//-->
</script>


 </body>
</html>
